﻿<Window x:Class="ScreenReaderAPIWrapperTester.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="API Test" Height="350" Width="525"
        FocusManager.FocusedElement="{Binding ElementName=speakBox}">
    <StackPanel Orientation="Vertical" Name="mainPanel">
        <StackPanel Orientation="Horizontal">
            <Label Name="speakLabel" HorizontalAlignment="Center" VerticalAlignment="Center" Target="{Binding ElementName=speakBox}">_Text to speak:</Label>
            <TextBox Name="speakBox" VerticalAlignment="Center" AutomationProperties.LabeledBy="{Binding ElementName=speakLabel}"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal">
            <Button Name="speakButton" HorizontalAlignment="Center" VerticalAlignment="Center" Click="speakButton_Click">_Speak</Button>
            <Button Name="pauseButton" HorizontalAlignment="Center" VerticalAlignment="Center" Click="pauseButton_Click">_Pause</Button>
            <Button Name="getReaderButton" HorizontalAlignment="Center" VerticalAlignment="Center" Click="readerIdentifyButton_Click">_Get current screen reader</Button>
        </StackPanel>
        <CheckBox Name="useSapiBox" IsChecked="false">_Force SAPI output</CheckBox>
        <StackPanel Orientation="Horizontal">
            <Button Name="increaseSAPIRateButton" HorizontalAlignment="Center" VerticalAlignment="Center" Click="increaseSAPIRateButton_Click">_Increase SAPI Rate</Button>
            <Button Name="decreaseSAPIRateButton" HorizontalAlignment="Center" VerticalAlignment="Center" Click="decreaseSAPIRateButton_Click">_Decrease SAPI Rate</Button>
        </StackPanel>
        <StackPanel Orientation="Horizontal">
            <CheckBox Name="alertOnFinishBox" IsChecked="True">Alert when finished speaking</CheckBox>
        </StackPanel>
    </StackPanel>
</Window>